package org.tank.sigleton;

public class Interior {


    private Interior(){

    }


    public static  class Hold{
        private final static Interior interior=new Interior();
    }


    public static  Interior getInstance(){
        return  Hold.interior;
    }


    public static void main(String[] args) {
        for (int i = 0; i <100 ; i++) {
            new Thread(()-> System.out.println(Interior.getInstance().hashCode())).start();
        }
    }
}
